package com.qsmx.store.app.fusion;

import android.os.Environment;

import java.io.File;
import java.util.List;

public class FusionCode {
    public static final String AES_SIGN_KEY = "rwCyegYqZjtnBPND";
    public static final String SIGN_KEY = "eaM3N_sUOqQn,A,q";
    public static final String API_OSS_BUCKET = "qsmx-test";
    public static Boolean QrIsLoading = false;
    public static int SUCCESS = 0;
    public static int FAIL = -1;
    public static int NET_FAIL = -2;
    public static String E_SUCCESS = "1";
    public static String E_FAIL = "-1";
    public static String USB_PATH = "";

    /**
     * 后台页面是否显示
     */
    public static boolean BackIsShowing = false;

    /**
     * 是否处于首页
     */
    public static boolean HomeIsShowing = true;

    public static boolean readCardIsSend = false;
    // 存储图片的SDCard路径
    public static final String SD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator;

    // 存储图片的sdcard目录
    public static final String FILE_DIR = "fyzq/";

    // 存储路径
    public static final String SAVE_PATH = SD_PATH + FILE_DIR;
    public static final String LOG_PATH = SAVE_PATH + "log/";
    // 视频文件路径
    public static final String VIDEO_PATH = SAVE_PATH + "video/";
    public static final String IMAGE_PATH = SAVE_PATH + "image/";
    public static final String DOWNLOAD_SAVE_PATH = SAVE_PATH + "download/";
    public static final String DOWNLOAD_SAVE_APK_PATH = DOWNLOAD_SAVE_PATH + "apk/";
    public static final String DOWNLOAD_SAVE_BIN_PATH = DOWNLOAD_SAVE_PATH + "bin/";

    public static final String DATABASE_PATH = SAVE_PATH + "database/";


    /**
     * 文件类型
     */
    public enum AddressList {
        RELEASE,                //正式环境
        DEV,                //测试环境
    }

    /*
     * 文件后缀相关常量
     */
    public static final String SUFFIX_TMP_FILE = "tmp";                 //临时文件后缀
    public static final String SUFFIX_AUDIO_FILE = "arm";             //声音文件后缀
    public static final String SUFFIX_VIDEO_FILE = "mp4";             //视频文件后缀
    public static final String SUFFIX_IMAGE_FILE = "png";               //图片文件后缀
    public static final String SUFFIX_IMAGE_THUMBNAIL = "thumbnail";    //图片缩略图后缀

    /**
     * 文件类型
     */
    public enum FileType {
        FILE_TYPE_AUDIO,                //音频文件
        FILE_TYPE_VIDEO,                //视频文件
        FILE_TYPE_IMAGE,                //图片文件
        FILE_TYPE_TMP,                  //临时文件
        FILE_TYPE_THUMBNAIL,             //图片缩略图
        FILE_TYPE_HEAD                  //头像图片
    }

    public static class Address_Release {
        public static String BAIDU = "www.baidu.com";
        public static String APPLET_QSMX = "applet.njqsmx.com";
        public static String APP_QSMX = "app.njqsmx.com";
        public static String ENET = "enet.njqsmx.com";

    }

    public static class Address_Dev {
        public static String BAIDU = "www.baidu.com";
        public static String APPLET_QSMX = "applet-test.njqsmx.com";
        public static String APP_QSMX = "apptest.njqsmx.com";
        public static String ENET = "enettest.njqsmx.com";
    }
}
